<template>
<div class="toDream" @click="showMore">
<!--  点击显示更多-->
  <div class="showMore">
    <img src="../assets/images/more.jpg" alt="">
  </div>
<!--  更多功能-->
  <div class="more" v-show="isShow">
    <img src="../assets/images/dream.jpg" @click="$router.push('/open_dream')" alt="">
    <img src="../assets/images/joke1.jpg" @click="$router.push('/joke')" alt="">
    <img src="../assets/images/robot1.jpg" @click="$router.push('/robot')" alt="">
    <img src="../assets/images/cupid.jpg" @click="$router.push('/constellation')" alt="">
  </div>
</div>
</template>

<script>
export default {
  name: "Oneiromancy",
  data(){
    return {
      isShow:false,
    }
  },
  methods:{
    showMore(){
      this.isShow==true?this.isShow=false:this.isShow=true;
    }
  }
}
</script>

<style scoped lang="less">
.toDream {
  position: fixed;
  top: 22%;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  opacity: 0.8;
  //展示更多
  .showMore {
    width: 35px;
    margin: 0 auto;
    font-size: 14px;
    text-align: center;
  }
  img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 0 3px #56ceb7;
  }
//  更多
  .more {
    position: relative;
    img {
      position: absolute;
      z-index: 100;
    }
    //解梦
    img:nth-of-type(1) {
      left: 0px;
      top: -80px;
    }
    //笑话
    img:nth-of-type(2) {
      left: -40px;
      top: -51px;
    }
    //机器人
    img:nth-of-type(3) {
      left: -40px;
      top: -11px;
    }
    //星座速配
    img:nth-of-type(4) {
      left: 0px;
      top: 10px;
    }
  }
}
</style>